package com.dt76.smallloanbackenduser.hystrix.etao;

import com.dt76.smallloanbackenduser.pojo.etao.Meun;
import com.dt76.smallloanbackenduser.remote.etao.MenuRemote;
import com.dt76.smallloanbackenduser.utils.MenuList;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class MenuHystrix implements MenuRemote {


    @Override
    public List<Meun> getAllMenu() {
        return new ArrayList<>();
    }

    @Override
    public List<String> getMenuByRId(Integer rId) {
        return new ArrayList<>();
    }

    @Override
    public Result editMenu(MenuList menuList) {
        System.out.println("经熔断");
        return new Result();
    }

}
